package com.yuedao.sender.model;

import javax.persistence.Entity;

import cn.ydx.protobuf.OTIpcDef;

/**
 * @author Jason Biao
 *
 *网约车平台公司服务机构
 */
@Entity
public class BaseInfoCompanyService  extends  BaseEntity{
    
	/**
	 * 
	 */
	private static final long serialVersionUID = 8969333075998440217L;

	private int address;
	
    private String serviceName;
    
    private String serviceNo;
    
    private String detailAddress;
    
    private String responsibleName;
    
    private String responsiblePhone;
    
    private String managerName;
    
    private String managerPhone;
    
    private String mailAddress;
    
    private String contactPhone; 
    
    private int createDate;
    
    private int state;
    
	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public int getAddress() {
		return address;
	}

	public void setAddress(int address) {
		this.address = address;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getServiceNo() {
		return serviceNo;
	}

	public void setServiceNo(String serviceNo) {
		this.serviceNo = serviceNo;
	}

	public String getDetailAddress() {
		return detailAddress;
	}

	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}

	public String getResponsibleName() {
		return responsibleName;
	}

	public void setResponsibleName(String responsibleName) {
		this.responsibleName = responsibleName;
	}

	public String getResponsiblePhone() {
		return responsiblePhone;
	}

	public void setResponsiblePhone(String responsiblePhone) {
		this.responsiblePhone = responsiblePhone;
	}

	public String getManagerName() {
		return managerName;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public String getManagerPhone() {
		return managerPhone;
	}

	public void setManagerPhone(String managerPhone) {
		this.managerPhone = managerPhone;
	}

	public String getMailAddress() {
		return mailAddress;
	}

	public void setMailAddress(String mailAddress) {
		this.mailAddress = mailAddress;
	}

	public int getCreateDate() {
		return createDate;
	}

	public void setCreateDate(int createDate) {
		this.createDate = createDate;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}
	
	public static OTIpcDef.BaseInfoCompanyService convert(BaseInfoCompanyService data){
        OTIpcDef.BaseInfoCompanyService item = OTIpcDef.BaseInfoCompanyService.newBuilder()
                .setCompanyId(data.getCompanyId())
                .setAddress(data.getAddress())
                .setServiceName(data.getServiceName())
                .setServiceNo(data.getServiceNo())
                .setDetailAddress(data.getDetailAddress())
                .setResponsibleName(data.getResponsibleName())
                .setResponsiblePhone(data.getResponsiblePhone())
                .setManagerName(data.getManagerName())
                .setManagerPhone(data.getManagerPhone())
                .setMailAddress(data.getMailAddress())
                .setCreateDate(Long.valueOf(data.getCreateDate()))
                .setContactPhone(data.getContactPhone())
                .setState(data.getState())
                .setFlag(data.getFlag())
                .setUpdateTime(Long.valueOf(data.getUpdateTime()))
                .build();

        return item;
    }
}
